using System;

using DesignByContract;

namespace Outcoding.GraphGenerator.Entities {
    public class Axes {
        private IAxis mValueAxis;
        private IAxis mCategoryAxis;
        private IAxis mSeriesAxis;

        public IAxis ValueAxis {
            get {
                if (mValueAxis == null)
                    mValueAxis = new ValueAxis();
                return mValueAxis;
            }
            set {
                mValueAxis = value;
            }
        }

        public IAxis CategoryAxis {
            get {
                if (mCategoryAxis == null)
                    mCategoryAxis = new CategoryAxis();
                return mCategoryAxis;
            }
            set {
                mCategoryAxis = value;
            }
        }

        public IAxis SeriesAxis {
            get {
                if (mSeriesAxis == null)
                    mSeriesAxis = new SeriesAxis();
                return mSeriesAxis;
            }
            set {
                mSeriesAxis = value;
            }
        }
    }
}
